Projection

open class Projection

A projection is used to translate between on screen location and geographic coordinates on the surface of the Earth. Screen location is in screen pixels (not display pixels) with respect to the top left corner of the map (and not necessarily of the whole screen).

Functions

Link copied to clipboard
open fun calculateZoom(minScale: Float): Double
Calculates a zoom level based on minimum scale and current scale from MapView
Link copied to clipboard
Returns the geographic location that corresponds to a screen location.
Link copied to clipboard
open fun fromScreenLocations(@NonNull input: Array<Double>, @NonNull output: Array<Double>)
Returns the geographic locations that corresponds to screen locations.
Link copied to clipboard
Returns the LatLng for a spherical Mercator projected meters.
Link copied to clipboard
open fun getMetersPerPixelAtLatitude(@FloatRange(from = "-90", to = 90) latitude: Double): Double
Returns the distance spanned by one pixel at the specified latitude and current zoom level.
Link copied to clipboard
Returns the spherical Mercator projected meters for a LatLng.
Link copied to clipboard
Gets a projection of the viewing frustum for converting between screen coordinates and geo-latitude/longitude coordinate bounds.
Link copied to clipboard
open fun getVisibleRegion(ignorePadding: Boolean): VisibleRegion
Gets a projection of the viewing frustum for converting between screen coordinates and geo-latitude/longitude coordinates.
Link copied to clipboard
Link copied to clipboard
Returns a screen location that corresponds to a geographical coordinate (LatLng).
Link copied to clipboard
open fun toScreenLocations(@NonNull input: Array<Double>, @NonNull output: Array<Double>)
Returns a screen locations that corresponds to a geographical coordinates.